import marketingApi from '@/config/server/api/marketing.js'

function getIndexAd(info) {
  return marketingApi.advertisement.getIndexAd.fetch(info)
}

function getAdvListByOnShelf(info) {
  return marketingApi.advertisement.getAdvListByOnShelf.fetch(info)
}

function getOnShelfStatistics(info) {
  return marketingApi.advertisement.getOnShelfStatistics.fetch(info)
}

function getAdvListByOffShelf(info) {
  return marketingApi.advertisement.getAdvListByOffShelf.fetch(info)
}

function getAdvPreview(info) {
  return marketingApi.advertisement.getAdvPreview.fetch(info)
}

function advPreviewExport(info) {
  return marketingApi.advertisement.advPreviewExport.fetch(info)
}

function createFun(info) {
  return marketingApi.advertisement.create.fetch(info)
}

function updateFun(info) {
  return marketingApi.advertisement.update.fetch(info)
}

function deleteFun(info) {
  return marketingApi.advertisement.delete.fetch(info)
}

function updateOffShelf(info) {
  return marketingApi.advertisement.updateOffShelf.fetch(info)
}

function updateAdvOnShelf(info) {
  return marketingApi.advertisement.updateAdvOnShelf.fetch(info)
}

function updateDisplayTop(info) {
  return marketingApi.advertisement.updateDisplayTop.fetch(info)
}

function getAdvertisementById(info) {
  return marketingApi.advertisement.getAdvertisementById.fetch(info)
}

function getRoleListByPort(info) {
  return marketingApi.advertisement.getRoleListByPort.fetch(info)
}

function updateRoleByPort(info) {
  return marketingApi.advertisement.updateRoleByPort.fetch(info)
}

function updateAdvDisplayOrder(info) {
  return marketingApi.advertisement.updateAdvDisplayOrder.fetch(info)
}

export default {
  getIndexAd,
  getAdvListByOnShelf,
  getOnShelfStatistics,
  getAdvListByOffShelf,
  getAdvPreview,
  advPreviewExport,
  updateAdvOnShelf,
  createFun,
  updateFun,
  deleteFun,
  updateOffShelf,
  updateDisplayTop,
  getAdvertisementById,
  getRoleListByPort,
  updateRoleByPort,
  updateAdvDisplayOrder
}
